<template>
  <div class="score-board">
    <div class="apple">
      <img src="@/assets/imgs/apple.svg" alt="">
      <div>{{ $store.state.score }}</div>
    </div>
    <div class="champion">
      <img src="@/assets/imgs/champion.svg" alt="">
      <div>{{ $store.state.record }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ScoreBoard',
  data () {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.score-board {
  background-color: #4a752b;
  height: 8vh;
  display: flex;
  justify-content: space-around;
  user-select: none;
  position: relative;
  .apple, .champion {
    display: flex;
    align-items: center;
    div {
      margin-left: 1vh;
      font-size: 3vh;
    }
  }
  img {
    width: 6vh;
  }
}
</style>
